<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="map">
			<ul>
				<li><a href=""></a></li>
				<li></li>
				<span><b></b></span>
			</ul>
			<ul>
				<li></li>
				<li><a href=""><img src="" alt=""></a></li>
				<span></span>
			</ul>
		</div>
		<script type="text/javascript">
			function getChild (parent) {
				var children = parent.children
				for (var child of children) {
					console.log(child.nodeName.toLowerCase())
					getChild(child)
				}
			}
			getChild(document.body)
		</script>
	</body>
</html>
